package com.hengx.cellview.cell;

import android.graphics.Canvas;
import android.graphics.Paint;

public class ColorCell extends Cell {
    
    private int color;
    
    public ColorCell(int color) {
        this.color = color;
    }
    
    @Override
    public void draw(Paint paint, Canvas canvas, float scaleFactor) {
        paint.setStyle(Paint.Style.FILL);
        paint.setColor(color);
        canvas.drawRect(getBounds(), paint);
    }
    
}
